package br.inf.solutions.apresentacoes.ssp.model.enums;

public enum DriverLicenseCategory {
	
	A("A"),
	B("B"),
	C("C"),
	D("D"),
	E("E");
	
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private DriverLicenseCategory(String name){
		this.name = name;
	}
	
	public static DriverLicenseCategory getDriverLicenseCategoryrById(Integer id) {  
        return DriverLicenseCategory.values()[id];  
      } 
	
	@Override
	public String toString() {
		return this.name;
	}
}
